package com.juicygames.framework.action;

import com.juicygames.framework.GameAction;
import com.juicygames.framework.gamepart.GameEntity;

public class EntityDestroyedAction extends GameAction {
	
	GameEntity entity;
	
	private static EntityDestroyedAction instance = null;
	
	public static EntityDestroyedAction getInstance(GameEntity entity) {
		if (instance == null) {
			instance = new EntityDestroyedAction(entity);
		} else {
			instance.setEntity(entity);
		}
		return instance;
	}
	
	private EntityDestroyedAction(GameEntity entity) {
		this.entity = entity;
	}
	
	public GameEntity getEntity() {
		return entity;
	}

	protected void setEntity(GameEntity entity) {
		this.entity = entity;
	}
	
	

}
